﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>公告</title>
    <link href="../demo.css" rel="stylesheet" type="text/css" />
    <script src="../../../SFramework/boot.js"></script>
</head>
<body> 

    <div id="datagrid1" class="mini-datagrid" style="width:100%;height:400px;" allowresize="true" onrowdblclick="rowdblclick" pagesize="500" showpager="false"
         url="/extendpage/data/jsondata.aspx?entity=v_t_hr_post_message&condition=client_visible=1&order=add_time&desc=Yes" idfield="id" multiselect="true">
        <div property="columns">
            <div field="title" width="280" headeralign="center" allowsort="true">标题</div>
            <div field="id" name="id" width="500" headeralign="center" allowsort="true" visible="false">ID</div>
            <<!--div field="userName" width="100" headeralign="center" allowsort="true">发布人</div>-->
            <div field="add_time" width="100" headeralign="center" allowsort="true">发布日期</div>
        </div>
    </div>
</body>
</html>
<script>
    mini.parse();
    var grid = mini.get("datagrid1");
    grid.load();
    function rowdblclick(e) {

        var row = e.row

        mini.open({
            url: "/ExtendPage/PostMessage/postmessage.aspx?id=" + row.id,
            title: "查看公告", width: 800, height: 600,
            onload: function () {

            },
            ondestroy: function (action) {
                grid.reload();
            }
        });
    }


</script>